Skip to content

Conversation

@CyberVy
Copy link
Contributor

@CyberVy CyberVy commented Mar 4, 2025

Missing parentheses when calling is_torchao_available() will result in an import error in systems without torchao.

@CyberVy CyberVy changed the title Fixed the missing parentheses when calling is_torchao_available in quantization_config.py. Fix the missing parentheses when calling is_torchao_available in quantization_config.py. Mar 4, 2025
@CyberVy
Copy link
Contributor Author

CyberVy commented Mar 4, 2025

@asomoza
Could you have a look? Thanks!

Copy link
Contributor

@a-r-r-o-w a-r-r-o-w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh this is my bad! I should've tested with/without TorchAO in #10927 but only did with TorchAO and missed this.

cc @DN6 Are the lazy imports not lazy? 😅

@asomoza
Copy link
Member

asomoza commented Mar 4, 2025

Thanks!

@asomoza asomoza merged commit dcd77ce into huggingface:main Mar 4, 2025
4 checks passed
@CyberVy CyberVy deleted the quantization_config_check_torchao_available branch March 4, 2025 12:53
@a120092009
Copy link
Contributor

Thank you for fixing the code! I just noticed this issue. @CyberVy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants